3.1109 \(\int \frac{\cos ^{\frac{3}{2}}(c+d x) (A+C \sec ^2(c+d x))}{a+a \sec (c+d x)} \, dx\)
Optimal. Leaf size=122 \[ \frac{(5 A+3 C) \text{EllipticF}\left (\frac{1}{2} (c+d x),2\right )}{3 a d}-\frac{(3 A+C) E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{a d}-\frac{(A+C) \sin (c+d x) \cos ^{\frac{3}{2}}(c+d x)}{d (a \cos (c+d x)+a)}+\frac{(5 A+3 C) \sin (c+d x) \sqrt{\cos (c+d x)}}{3 a d} \]
[Out]
-(((3*A + C)*EllipticE[(c + d*x)/2, 2])/(a*d)) + ((5*A + 3*C)*EllipticF[(c + d*x)/2, 2])/(3*a*d) + ((5*A + 3*C
)*Sqrt[Cos[c + d*x]]*Sin[c + d*x])/(3*a*d) - ((A + C)*Cos[c + d*x]^(3/2)*Sin[c + d*x])/(d*(a + a*Cos[c + d*x])
)
________________________________________________________________________________________
Rubi [A] time = 0.240637, antiderivative size = 122, normalized size of antiderivative = 1.,
number of steps used = 6, number of rules used = 6, integrand size = 35, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.171, Rules used =
{4114, 3042, 2748, 2639, 2635, 2641} \[ \frac{(5 A+3 C) F\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{3 a d}-\frac{(3 A+C) E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{a d}-\frac{(A+C) \sin (c+d x) \cos ^{\frac{3}{2}}(c+d x)}{d (a \cos (c+d x)+a)}+\frac{(5 A+3 C) \sin (c+d x) \sqrt{\cos (c+d x)}}{3 a d} \]
Antiderivative was successfully verified.
[In]
Int[(Cos[c + d*x]^(3/2)*(A + C*Sec[c + d*x]^2))/(a + a*Sec[c + d*x]),x]
[Out]
-(((3*A + C)*EllipticE[(c + d*x)/2, 2])/(a*d)) + ((5*A + 3*C)*EllipticF[(c + d*x)/2, 2])/(3*a*d) + ((5*A + 3*C
)*Sqrt[Cos[c + d*x]]*Sin[c + d*x])/(3*a*d) - ((A + C)*Cos[c + d*x]^(3/2)*Sin[c + d*x])/(d*(a + a*Cos[c + d*x])
)
Rule 4114
Int[(cos[(e_.) + (f_.)*(x_)]*(d_.))^(n_)*((a_) + (b_.)*sec[(e_.) + (f_.)*(x_)])^(m_.)*((A_.) + (C_.)*sec[(e_.)
+ (f_.)*(x_)]^2), x_Symbol] :> Dist[d^(m + 2), Int[(b + a*Cos[e + f*x])^m*(d*Cos[e + f*x])^(n - m - 2)*(C + A
*Cos[e + f*x]^2), x], x] /; FreeQ[{a, b, d, e, f, A, C, n}, x] && !IntegerQ[n] && IntegerQ[m]
Rule 3042
Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_.)*((A_.) + (C_.)*s
in[(e_.) + (f_.)*(x_)]^2), x_Symbol] :> Simp[(a*(A + C)*Cos[e + f*x]*(a + b*Sin[e + f*x])^m*(c + d*Sin[e + f*x
])^(n + 1))/(f*(b*c - a*d)*(2*m + 1)), x] + Dist[1/(b*(b*c - a*d)*(2*m + 1)), Int[(a + b*Sin[e + f*x])^(m + 1)
*(c + d*Sin[e + f*x])^n*Simp[A*(a*c*(m + 1) - b*d*(2*m + n + 2)) - C*(a*c*m + b*d*(n + 1)) + (a*A*d*(m + n + 2
) + C*(b*c*(2*m + 1) - a*d*(m - n - 1)))*Sin[e + f*x], x], x], x] /; FreeQ[{a, b, c, d, e, f, A, C, n}, x] &&
NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && LtQ[m, -2^(-1)]
Rule 2748
Int[((b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> Dist[c, Int[(b*S
in[e + f*x])^m, x], x] + Dist[d/b, Int[(b*Sin[e + f*x])^(m + 1), x], x] /; FreeQ[{b, c, d, e, f, m}, x]
Rule 2639
Int[Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2*EllipticE[(1*(c - Pi/2 + d*x))/2, 2])/d, x] /; FreeQ[{
c, d}, x]
Rule 2635
Int[((b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> -Simp[(b*Cos[c + d*x]*(b*Sin[c + d*x])^(n - 1))/(d*n),
x] + Dist[(b^2*(n - 1))/n, Int[(b*Sin[c + d*x])^(n - 2), x], x] /; FreeQ[{b, c, d}, x] && GtQ[n, 1] && Integer
Q[2*n]
Rule 2641
Int[1/Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2*EllipticF[(1*(c - Pi/2 + d*x))/2, 2])/d, x] /; FreeQ
[{c, d}, x]
Rubi steps
\begin{align*} \int \frac{\cos ^{\frac{3}{2}}(c+d x) \left (A+C \sec ^2(c+d x)\right )}{a+a \sec (c+d x)} \, dx &=\int \frac{\sqrt{\cos (c+d x)} \left (C+A \cos ^2(c+d x)\right )}{a+a \cos (c+d x)} \, dx\\ &=-\frac{(A+C) \cos ^{\frac{3}{2}}(c+d x) \sin (c+d x)}{d (a+a \cos (c+d x))}+\frac{\int \sqrt{\cos (c+d x)} \left (-\frac{1}{2} a (3 A+C)+\frac{1}{2} a (5 A+3 C) \cos (c+d x)\right ) \, dx}{a^2}\\ &=-\frac{(A+C) \cos ^{\frac{3}{2}}(c+d x) \sin (c+d x)}{d (a+a \cos (c+d x))}-\frac{(3 A+C) \int \sqrt{\cos (c+d x)} \, dx}{2 a}+\frac{(5 A+3 C) \int \cos ^{\frac{3}{2}}(c+d x) \, dx}{2 a}\\ &=-\frac{(3 A+C) E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{a d}+\frac{(5 A+3 C) \sqrt{\cos (c+d x)} \sin (c+d x)}{3 a d}-\frac{(A+C) \cos ^{\frac{3}{2}}(c+d x) \sin (c+d x)}{d (a+a \cos (c+d x))}+\frac{(5 A+3 C) \int \frac{1}{\sqrt{\cos (c+d x)}} \, dx}{6 a}\\ &=-\frac{(3 A+C) E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{a d}+\frac{(5 A+3 C) F\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{3 a d}+\frac{(5 A+3 C) \sqrt{\cos (c+d x)} \sin (c+d x)}{3 a d}-\frac{(A+C) \cos ^{\frac{3}{2}}(c+d x) \sin (c+d x)}{d (a+a \cos (c+d x))}\\ \end{align*}
Mathematica [C] time = 6.56992, size = 1300, normalized size = 10.66 \[ \text{result too large to display} \]
Warning: Unable to verify antiderivative.
[In]
Integrate[(Cos[c + d*x]^(3/2)*(A + C*Sec[c + d*x]^2))/(a + a*Sec[c + d*x]),x]
[Out]
(((-3*I)/2)*A*Cos[c/2 + (d*x)/2]^2*Cos[c + d*x]*Csc[c/2]*Sec[c/2]*(A + C*Sec[c + d*x]^2)*((2*E^((2*I)*d*x)*Hyp
ergeometric2F1[1/2, 3/4, 7/4, -(E^((2*I)*d*x)*(Cos[c] + I*Sin[c])^2)]*Sqrt[(2*(1 + E^((2*I)*d*x))*Cos[c] + (2*
I)*(-1 + E^((2*I)*d*x))*Sin[c])/E^(I*d*x)]*Sqrt[1 + E^((2*I)*d*x)*Cos[2*c] + I*E^((2*I)*d*x)*Sin[2*c]])/((3*I)
*d*(1 + E^((2*I)*d*x))*Cos[c] - 3*d*(-1 + E^((2*I)*d*x))*Sin[c]) - (2*Hypergeometric2F1[-1/4, 1/2, 3/4, -(E^((
2*I)*d*x)*(Cos[c] + I*Sin[c])^2)]*Sqrt[(2*(1 + E^((2*I)*d*x))*Cos[c] + (2*I)*(-1 + E^((2*I)*d*x))*Sin[c])/E^(I
*d*x)]*Sqrt[1 + E^((2*I)*d*x)*Cos[2*c] + I*E^((2*I)*d*x)*Sin[2*c]])/((-I)*d*(1 + E^((2*I)*d*x))*Cos[c] + d*(-1
+ E^((2*I)*d*x))*Sin[c])))/((A + 2*C + A*Cos[2*c + 2*d*x])*(a + a*Sec[c + d*x])) - ((I/2)*C*Cos[c/2 + (d*x)/2
]^2*Cos[c + d*x]*Csc[c/2]*Sec[c/2]*(A + C*Sec[c + d*x]^2)*((2*E^((2*I)*d*x)*Hypergeometric2F1[1/2, 3/4, 7/4, -
(E^((2*I)*d*x)*(Cos[c] + I*Sin[c])^2)]*Sqrt[(2*(1 + E^((2*I)*d*x))*Cos[c] + (2*I)*(-1 + E^((2*I)*d*x))*Sin[c])
/E^(I*d*x)]*Sqrt[1 + E^((2*I)*d*x)*Cos[2*c] + I*E^((2*I)*d*x)*Sin[2*c]])/((3*I)*d*(1 + E^((2*I)*d*x))*Cos[c] -
3*d*(-1 + E^((2*I)*d*x))*Sin[c]) - (2*Hypergeometric2F1[-1/4, 1/2, 3/4, -(E^((2*I)*d*x)*(Cos[c] + I*Sin[c])^2
)]*Sqrt[(2*(1 + E^((2*I)*d*x))*Cos[c] + (2*I)*(-1 + E^((2*I)*d*x))*Sin[c])/E^(I*d*x)]*Sqrt[1 + E^((2*I)*d*x)*C
os[2*c] + I*E^((2*I)*d*x)*Sin[2*c]])/((-I)*d*(1 + E^((2*I)*d*x))*Cos[c] + d*(-1 + E^((2*I)*d*x))*Sin[c])))/((A
+ 2*C + A*Cos[2*c + 2*d*x])*(a + a*Sec[c + d*x])) + (Cos[c/2 + (d*x)/2]^2*Cos[c + d*x]^(3/2)*(A + C*Sec[c + d
*x]^2)*((4*(A + C + 2*A*Cos[c])*Csc[c])/d + (8*A*Cos[d*x]*Sin[c])/(3*d) + (4*Sec[c/2]*Sec[c/2 + (d*x)/2]*(A*Si
n[(d*x)/2] + C*Sin[(d*x)/2]))/d + (8*A*Cos[c]*Sin[d*x])/(3*d)))/((A + 2*C + A*Cos[2*c + 2*d*x])*(a + a*Sec[c +
d*x])) - (10*A*Cos[c/2 + (d*x)/2]^2*Cos[c + d*x]*Csc[c/2]*HypergeometricPFQ[{1/4, 1/2}, {5/4}, Sin[d*x - ArcT
an[Cot[c]]]^2]*Sec[c/2]*(A + C*Sec[c + d*x]^2)*Sec[d*x - ArcTan[Cot[c]]]*Sqrt[1 - Sin[d*x - ArcTan[Cot[c]]]]*S
qrt[-(Sqrt[1 + Cot[c]^2]*Sin[c]*Sin[d*x - ArcTan[Cot[c]]])]*Sqrt[1 + Sin[d*x - ArcTan[Cot[c]]]])/(3*d*(A + 2*C
+ A*Cos[2*c + 2*d*x])*Sqrt[1 + Cot[c]^2]*(a + a*Sec[c + d*x])) - (2*C*Cos[c/2 + (d*x)/2]^2*Cos[c + d*x]*Csc[c
/2]*HypergeometricPFQ[{1/4, 1/2}, {5/4}, Sin[d*x - ArcTan[Cot[c]]]^2]*Sec[c/2]*(A + C*Sec[c + d*x]^2)*Sec[d*x
- ArcTan[Cot[c]]]*Sqrt[1 - Sin[d*x - ArcTan[Cot[c]]]]*Sqrt[-(Sqrt[1 + Cot[c]^2]*Sin[c]*Sin[d*x - ArcTan[Cot[c]
]])]*Sqrt[1 + Sin[d*x - ArcTan[Cot[c]]]])/(d*(A + 2*C + A*Cos[2*c + 2*d*x])*Sqrt[1 + Cot[c]^2]*(a + a*Sec[c +
d*x]))
________________________________________________________________________________________
Maple [A] time = 2.121, size = 262, normalized size = 2.2 \begin{align*} -{\frac{1}{3\,ad}\sqrt{ \left ( 2\, \left ( \cos \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}-1 \right ) \left ( \sin \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{2}} \left ( \cos \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \sqrt{ \left ( \sin \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{2}}\sqrt{2\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}-1} \left ( 5\,A{\it EllipticF} \left ( \cos \left ( 1/2\,dx+c/2 \right ) ,\sqrt{2} \right ) +9\,A{\it EllipticE} \left ( \cos \left ( 1/2\,dx+c/2 \right ) ,\sqrt{2} \right ) +3\,C{\it EllipticF} \left ( \cos \left ( 1/2\,dx+c/2 \right ) ,\sqrt{2} \right ) +3\,C{\it EllipticE} \left ( \cos \left ( 1/2\,dx+c/2 \right ) ,\sqrt{2} \right ) \right ) -8\,A \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{6}+ \left ( 18\,A+6\,C \right ) \left ( \sin \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{4}+ \left ( -7\,A-3\,C \right ) \left ( \sin \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{2} \right ) \left ( \cos \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{-1}{\frac{1}{\sqrt{-2\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{4}+ \left ( \sin \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{2}}}} \left ( \sin \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{-1}{\frac{1}{\sqrt{2\, \left ( \cos \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}-1}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
int(cos(d*x+c)^(3/2)*(A+C*sec(d*x+c)^2)/(a+a*sec(d*x+c)),x)
[Out]
-1/3*((2*cos(1/2*d*x+1/2*c)^2-1)*sin(1/2*d*x+1/2*c)^2)^(1/2)*(cos(1/2*d*x+1/2*c)*(sin(1/2*d*x+1/2*c)^2)^(1/2)*
(2*sin(1/2*d*x+1/2*c)^2-1)^(1/2)*(5*A*EllipticF(cos(1/2*d*x+1/2*c),2^(1/2))+9*A*EllipticE(cos(1/2*d*x+1/2*c),2
^(1/2))+3*C*EllipticF(cos(1/2*d*x+1/2*c),2^(1/2))+3*C*EllipticE(cos(1/2*d*x+1/2*c),2^(1/2)))-8*A*sin(1/2*d*x+1
/2*c)^6+(18*A+6*C)*sin(1/2*d*x+1/2*c)^4+(-7*A-3*C)*sin(1/2*d*x+1/2*c)^2)/a/cos(1/2*d*x+1/2*c)/(-2*sin(1/2*d*x+
1/2*c)^4+sin(1/2*d*x+1/2*c)^2)^(1/2)/sin(1/2*d*x+1/2*c)/(2*cos(1/2*d*x+1/2*c)^2-1)^(1/2)/d
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (C \sec \left (d x + c\right )^{2} + A\right )} \cos \left (d x + c\right )^{\frac{3}{2}}}{a \sec \left (d x + c\right ) + a}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(cos(d*x+c)^(3/2)*(A+C*sec(d*x+c)^2)/(a+a*sec(d*x+c)),x, algorithm="maxima")
[Out]
integrate((C*sec(d*x + c)^2 + A)*cos(d*x + c)^(3/2)/(a*sec(d*x + c) + a), x)
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{{\left (C \cos \left (d x + c\right ) \sec \left (d x + c\right )^{2} + A \cos \left (d x + c\right )\right )} \sqrt{\cos \left (d x + c\right )}}{a \sec \left (d x + c\right ) + a}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(cos(d*x+c)^(3/2)*(A+C*sec(d*x+c)^2)/(a+a*sec(d*x+c)),x, algorithm="fricas")
[Out]
integral((C*cos(d*x + c)*sec(d*x + c)^2 + A*cos(d*x + c))*sqrt(cos(d*x + c))/(a*sec(d*x + c) + a), x)
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(cos(d*x+c)**(3/2)*(A+C*sec(d*x+c)**2)/(a+a*sec(d*x+c)),x)
[Out]
Timed out
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (C \sec \left (d x + c\right )^{2} + A\right )} \cos \left (d x + c\right )^{\frac{3}{2}}}{a \sec \left (d x + c\right ) + a}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(cos(d*x+c)^(3/2)*(A+C*sec(d*x+c)^2)/(a+a*sec(d*x+c)),x, algorithm="giac")
[Out]
integrate((C*sec(d*x + c)^2 + A)*cos(d*x + c)^(3/2)/(a*sec(d*x + c) + a), x)